package com.zhy.userproiver8001.mapper;

import com.zhy.pojo.Employee;
import com.zhy.utils.PageTool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<Employee> getAllEmp(@Param("page") PageTool pageTool,@Param("name") String name,@Param("status") Integer status);
    int countEmp(@Param("name") String name,@Param("status") Integer status);
    Employee getEmpByName(String name);
    int addEmp(Employee employee);
}
